{% extends 'base.html' %}

{% block title %}登录{% endblock %}

{% block link %}
    <link rel="stylesheet" href="{{ url_for('static', filename='css/signin.css') }}">
{% endblock %}

{% block main %}
    <div class="container">
        <form class="form-signin" method="post">

            <h2 class="form-signin-heading text-center">登录</h2>

            <div class="form-group">
                <label for="inputEmail" class="sr-only">电子邮箱</label>
                <input type="email" id="inputEmail" class="form-control" name="email" placeholder="电子邮箱"
                       required autofocus>
            </div>
            <div class="form-group">

                <label for="inputPassword" class="sr-only">密码</label>
                <input type="password" id="inputPassword" maxlength="6" class="form-control" placeholder="密码"
                       name="password" required>
            </div>
            <button class="btn btn-lg btn-primary btn-block" id="submit_login" type="submit">登录</button>
        </form>
        <div class="col-sm-4"></div>
        <div class="col-sm-4">
            <span class="col-sm-1"></span>
            <a href="{{ url_for('register') }}" class="col-sm-5">没有账户？去注册</a>
            <a href="{{ url_for('index') }}" class="col-sm-3">返回主页</a>
            <a href="mailto:caisi1735@163.com" class="">联系管理员</a>
        </div>
        <div class="col-sm-4"></div>
    </div> <!-- /container -->
{% endblock %}



{% block footer %}
    {#    <script>var login_route = "{% url 'login' %}"</script>#}
    {#    <script>var index_route = "{% url 'index' %}"</script>#}
    {#    <script src="{% static '/js/register_login.js' %}"></script>#}
{% endblock %}
